
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Document Title -->
	<title>{$seo.title}</title>
	<meta name="keywords" content="{$seo.keywords}" />
	<meta name="description" content="{$seo.description}" />
       <!-- Favicon -->
   <link rel="shortcut icon" href="{$lang.icon}" />
    <link href="{YUNYECMS_PUBLIC}plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
    <!-- CSS Files -->
    <link rel="stylesheet" href="{TPL}static/css/font-awesome.min.css">
    <!--==== Bootstrap css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/bootstrap.min.css">
    <!--==== Swiper css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/swiper.min.css">
    <!--==== Style css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/map.css?201901">
    <!--==== Responsive css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/responsive.css?201901">
    <!--==== Theme Color 1 css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/theme-color-1.css">
    <!--==== Custom css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/custom.css">
</head>
<body>
    
    <!-- Main header -->
    <!-- End of Main header -->
     {tpl "head"}
    <!-- Page title -->
     <php>
    	if($rootcat["pic"]) :
    </php>
    <section class="page-title-wrap" data-bg-img="{$rootcat.pic}" data-rjs="2">
        <div class="container">
            <div class="row align-items-center">
                <div class="col">
                    <div class="page-title" data-animate="fadeInUp" data-delay="1.05">
                        <h1>{$rootcat.title}</h1>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <php>
    	endif;
    </php> 
     <!-- End of Page title -->
<div class="breadcumb-wrapper">
    <div class="container">
        <div class="pull-left">
            <ul class="list-inline link-list">
                <li><a href="{ROOT}index.php?lang={$lang.id}">Home</a></li>
				</li>
                {yy:breadcumb  catid=$catid}
                     {loop}
                         {if $v['id']!=$catid }
						   <li><a href="{$v.url}">{$v.title}</a></li> 
						  {else}
						   <li><span>{$v.title}</span></li> 
						{/if}
					 {/loop}
                {/yy}
            </ul>
        </div>
        <div class="pull-right">
        </div>
        <div class="clearfix"></div>
    </div>
</div>     
    <!-- Gallery isotope Section -->
    <section class="pt-50 pb-120 default-bg">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <!-- gallery button inner-->
                    <div class="row">
                        <div class="col">
                            <div class="gallery--button-inner text-center" data-animate="fadeInUp">
                                <div class="gallery-button">
                                    <!-- Start Gallery nav -->
                                    <nav>
                                        <ul class="gallery_filter">
											  {yy:cat pid=$rootcatid}
												 {loop}
													<li  <php>if($catid==$v['id']||$rootcatid==$v['id'])  echo ' class="active"';	 </php>
	><a href="{$v.url}"><span class="gallery-btn pt-sans">{$v.title}</span></a>
													 </li> 
												 {/loop}
											  {/yy}
										</ul>
                                    </nav>
                                    <!-- Start Gallery nav -->
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- End Of gallery button inner-->

                    
   <section class="pt-10 pb-90">
        <div class="container">
            <div class="row align-items-center">
               <div class="col-lg-5">
                    <!-- Start Contact Info -->
                    <div class="contact-info mb-30" data-animate="fadeInUp" data-delay=".3">
                        <h1>Contact Us</h1>
                          {$row.content}
                    </div>
                     <!-- End of Contact Info -->
                </div>
                <div class="col-lg-7">
                    <!-- Map -->
                        <div class="map" id="map" data-map-latitude="23.790546" data-map-longitude="90.375583" data-map-zoom="16" data-map-marker="[[23.790546, 90.375583]]" style="overflow: hidden;">
                        <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=3Q8iv0fDlsyuSrUGgOqz45dOAetSt4g0"></script>
                        <script type="text/javascript" src="//api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
	<link rel="stylesheet" href="//api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
                        <div id="allmap" style="width: 100%; height: 500px;"></div>
                        <script type="text/javascript">
                            // 百度地图API功能
                            var map = new BMap.Map('allmap');
                            var poi = new BMap.Point({$row.map});
                            map.centerAndZoom(poi, 15);
                            map.enableScrollWheelZoom(); 
                            var content = '<div style="margin:0;line-height:20px;padding:2px;">' +
                                            '<img src="{$row.pic}" alt="" style="float:right;zoom:1;overflow:hidden;width:100px;height:100px;margin-left:3px;"/>' +
                                            '{$lang.address}<br/>TEL：{$lang.tel} {$lang.mobile} ' +
                                          '</div>';
                        
                            //创建检索信息窗口对象
                            var searchInfoWindow = null;
                            searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
                                    title  : "{$lang.sitename}",      //标题
                                    width  : 290,             //宽度
                                    height : 105,              //高度
                                    panel  : "panel",         //检索结果面板
                                    enableAutoPan : true,     //自动平移
                                    searchTypes   :[
                                        BMAPLIB_TAB_SEARCH,   //周边检索
                                        BMAPLIB_TAB_TO_HERE,  //到这里去
                                        BMAPLIB_TAB_FROM_HERE //从这里出发
                                    ]
                                });
                            var marker = new BMap.Marker(poi); //创建marker对象
                            marker.enableDragging(); //marker可拖拽
                            marker.addEventListener("click", function(e){
                                searchInfoWindow.open(marker);
                            })
                            map.addOverlay(marker); //在地图中添加marker
                            searchInfoWindow.open(marker);
                        </script>
                    </div>
                    <!-- Map End -->
                </div>
            </div>
        </div>
    </section> 
    <!-- Contact form -->
    <section class="pb-120">
        <div class="container">
            <div class="row">
                <div class="col">
                    <!-- Contact form -->
                    <div class="contact-form contact-page-form parsley-validate" data-animate="fadeInUp">
                        <h1>Feedback</h1>
                        <span>With * are required</span>
                        <div class="form-response"></div>
                          {form catid="12"  onsubmit="return check();"}            
                            <div class="row half-gutter">
                                <div class="col-md-4">
                                    <div class="form-group row">
                                        <label>Name *</label>
                                        <input type="text" name="name"  id="name" placeholder="Please enter your name" class="theme-input-style"   {if $this->member} value="{php echo $this->member['name'];}"   {/if} >
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group row">
                                        <label>Mobile *</label>
                                        <input type="mobile" name="mobile" id="mobile" placeholder="Mobile phone" class="theme-input-style"  {if $this->member} value="{php echo $this->member['mobile'];}"   {/if}  >
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group row">
                                        <label>Title*</label>
                                        <input type="text" name="title" id="title"  placeholder="Please enter a feedback title" class="theme-input-style">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label>Content</label>
                                <textarea name="remark" placeholder="Message content" class="theme-input-style" ></textarea>
                            </div>
                            <button class="btn btn-primary" type="submit"><i class="fa fa-send-o "></i> Submit </button>
                         <script language="javascript">   
						 function check() {
								{loop}
								{if $v['isrequired'] }
								if (document.getElementById("{$v.fdname}").value==""){
									window.alert("{$v.fdtitle} Can not be empty!");
									document.getElementById("{$v.fdname}").focus();
									return false ;
								 }
								 {/if}
							  {/loop}
							}
					 </script> 
                     {/form}
                    </div>
                    <!-- End of Contact form -->
                </div>
            </div>
        </div>
    </section>
    <!-- End of Contact form -->                                                     
                </div>
            </div>
        </div>
    </section>
    <!-- End Of GAllery Isotope Section -->
   {tpl 'foot'}
    <!-- JS Files -->
    <!-- ==== JQuery 3.3.1 js file==== -->
    <script src="{TPL}static/js/jquery-3.3.1.min.js"></script>

    <!-- ==== Bootstrap js file==== -->
    <script src="{TPL}static/js/bootstrap.bundle.min.js"></script>

    <!-- ==== JQuery Waypoint js file==== -->
    <script src="{TPL}static/js/jquery.waypoints.min.js"></script>

    <!-- ==== Sticky js file==== -->
    <script src="{TPL}static/js/sticky.min.js"></script>
    <!-- ==== Swiper js file==== -->
    <script src="{TPL}static/js/swiper.min.js"></script>
    <!-- ==== Parsley js file==== -->
    <script src="{TPL}static/js/parsley.min.js"></script>

    <!-- ==== Menu  js file==== -->
    <script src="{TPL}static/js/menu.min.js"></script>

    <!-- ==== Scrippt js file==== -->
    <script src="{TPL}static/js/scripts.js?20190123"></script>

    <!-- ==== Custom js file==== -->
    <script src="{TPL}static/js/custom.js"></script>
</body>
</html>